import request from '@/utils/request'
// 查询巡视周期分页信息
export const getgongdanapi = params => request.get('pio-microservice-biz/pio/tour-task/page', { params })
// 导出巡视任务单数据
export const exporttableapi = data => request.post('pio-microservice-biz/pio/tour-task/excel', data, { responseType: 'arraybuffer' })
// 删除巡视任务单
export const delgongdanapi = data => request.post(`pio-microservice-biz/pio/tour-task/delete?id=${data.id}`)
// 保存填报环节数据（ID为空新增，不为空更新）
export const posttianbaoapi = data => request.post('pio-microservice-biz/pio/tour-task/saveInTb', data)
// 发送填报环节数据（ID为空新增，不为空更新）
export const postfasongapi = data => request.post('pio-microservice-biz/pio/tour-task/sendInTb', data)
// 获取当前登录人单位信息
export const getuserloginapi = () => request.get('pio-microservice-biz/pio/common/user/org')
// 获取用户信息
export const getxunuserapi = params => request.get('pio-microservice-biz/pio/common/user/get', { params })
// 根据用电单位编码获取对应厂站信息
export const getchangzhanxinxiapi=params=>request.get('pio-microservice-biz/pio/common/factorystation/get',{params})